package com.csj.DesignPattern.derorator;

public class Egg extends Garnish{

    public Egg(FastFood fastFood) {
        super(1L, "鸡蛋", fastFood);
    }
    @Override
    public float cost() {
        return 1L + getFastFood().cost();
    }

    @Override
    public String getDescription() {
        return "鸡蛋" + getFastFood().getDescription();
    }
}
